<template>
    <div class="logo">XXX后台管理系统</div>
    <!-- <el-radio-group v-model="isCollapse" style="margin-bottom: 20px">
        <el-radio-button :value="false">expand</el-radio-button>
        <el-radio-button :value="true">collapse</el-radio-button>
    </el-radio-group> -->
    <el-menu default-active="1" class="el-menu-vertical-demo" :collapse="collapsed">
        <el-menu-item index="1">
            <el-icon>
                <Position />
            </el-icon>
            <template #title><router-link to="/home/dept">部门管理</router-link></template>
        </el-menu-item>
        <el-menu-item index="2">
            <el-icon>
                <User />
            </el-icon>
            <template #title><router-link to="/home/emp">员工管理</router-link></template>
        </el-menu-item>

        <el-menu-item index="3">
            <el-icon>
                <setting />
            </el-icon>
            <template #title><router-link to="/home/system">系统管理</router-link></template>
        </el-menu-item>
    </el-menu>
</template>

<script lang="ts" setup>
import { ref } from 'vue'


defineProps({
    collapsed: {
        type: Boolean
    }
})
</script>

<style lang="less" scoped>
.el-menu-vertical-demo:not(.el-menu--collapse) {
    width: 200px;
    min-height: 400px;
}

.el-menu {
    background-color: @menuBg;
    min-height: 400px;
    height: 100vh;
    border-right: none;
}

.logo {
    width: 100%;
    height: 60px;
    background-color: @menuBg;
    display: flex;
    color: white;
    align-items: center;
    justify-content: center;
}
a {
    color: white!important; 
}
</style>